﻿@model CloudFranceTriple.Models.ForumAnnonceSet

@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.AnnoncementCreateTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>
        @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementCreateTitle
    </h1>
    <section>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>ForumAnnonceSet</legend>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementText
                </div>
                <div class="editor-field">
                    <textarea id="Text" name="Text">
                        @Html.DisplayTextFor(model => model.Text)
                    </textarea>
                    @Html.ValidationMessageFor(model => model.Text)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnHeader
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.ShowOnHeader)
                    @Html.ValidationMessageFor(model => model.ShowOnHeader)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnPortail
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.ShowOnPortail)
                    @Html.ValidationMessageFor(model => model.ShowOnPortail)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnForum
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.ShowOnForum)
                    @Html.ValidationMessageFor(model => model.ShowOnForum)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnTopic
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.ShowOnTopic)
                    @Html.ValidationMessageFor(model => model.ShowOnTopic)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementShowOnPost
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.ShowOnPost)
                    @Html.ValidationMessageFor(model => model.ShowOnPost)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementDateBegin
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.DateBegin)
                    @Html.ValidationMessageFor(model => model.DateBegin)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementDateEnd
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.DateEnd)
                    @Html.ValidationMessageFor(model => model.DateEnd)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.AnnoncementOrder
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Order)
                    @Html.ValidationMessageFor(model => model.Order)
                </div>

                <p>
                    <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonCreate" />
                </p>
            </fieldset>
        }
        @Html.Partial("_AnnoncementBackToList")
    </section>
</div>
<script type="text/javascript" src="http://tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script type="text/javascript">tinymce.init({
    selector: "textarea#Text",
    theme: "modern",
    plugins: ["autolink link image charmap print preview emoticons media textcolor searchreplace wordcount code contextmenu paste"],
    toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
    toolbar2: "print preview media | forecolor backcolor emoticons",
});</script>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
